<?php
class GameVersionAction extends SzAbstractAction
{
    protected $paramTypes = array(

        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_STRING,
    );

    /**
     * 检测游戏版本号
     * @param string $channel
     * @param string $version
     * @return SzResponse
     */
    public function execute($channel, $version)
    {
        return $this->buildResponse(
            GameService::get()->checkVersion($channel, $version)
        );
    }
}